package com.carleasoft.mps.adu.business.position.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carleasoft.mps.adu.business.position.bean.entity.AuthorityPositionEntity;
import com.carleasoft.mps.adu.business.position.bean.po.AuthorityPositionPagePo;
import com.carleasoft.mps.adu.business.position.bean.po.AuthorityPositionPo;
import com.carleasoft.mps.adu.business.position.bean.vo.AuthorityPositionPageVo;
import com.carleasoft.mps.adu.business.position.bean.vo.AuthorityPositionVo;
import com.carleasoft.mps.adu.business.position.bean.vo.PositionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>Description: position dao</p>
 * @since 2020-05-09
 * @author ztm
 */
@Repository
@Mapper
public interface AuthorityPositionDao extends BaseMapper<AuthorityPositionEntity> {

    /**
     * 分页查询职位信息
     * @param authorityPositionPagePo
     * @return List<AuthorityPositionPageVo>
     */
    Page<AuthorityPositionPageVo> treeQuery(AuthorityPositionPagePo authorityPositionPagePo);

    Page<PositionVo> pageList(@Param("page") Page page, @Param("po") AuthorityPositionPo authorityPositionPo);

    List<PositionVo> positionList();

    int batchUpdateDeptCode(@Param("deptCode") String deptCode,@Param("fullPath") String fullPath);

}
